package misColas;

public class Node {

	private String data;
	private Node next;

	public Node() {
		next = null;
		data = null;
	}
	
	public Node(String newData, Node linkValue) {	
		data = newData;
		next = linkValue;
	}

	public void setData(String newData) {
		data = newData;
	}


	public String getData() {
		return data;
	}
	
	public void setNext(Node newLink) {
		next  = newLink;
	}


	public Node getNext() {
		return next;
	}


}